import unittest
import urllib
from urllib.request import urlopen


class UrllibTests(unittest.TestCase):

    def setUp(self) -> None:
        with urlopen('http://sulin.site') as html:
            print(html.getcode())
            print(html.getheaders())
            print(html.msg)
            print(html.version)
            print(html.status)
            self.page = html.read()

    def test_part(self):
        pass


if __name__ == '__main__':
    unittest.main(verbosity=2)
